package com.itheima.socket.tcp.demo02;

import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

public class ClientDemo01 {

    public static void main(String[] args) throws Exception {

        // 创建Socket客户端的对象
        for(int x = 0 ; x < 51 ; x++) {

            InetAddress inetAddress = InetAddress.getByName("169.254.106.206");
            Socket socket = new Socket(inetAddress , 9999) ;            // 如果这个对象可以创建成功，那么就说明连接已经建立了

            // 让线程休眠100毫秒
            Thread.sleep(100);
        }

    }

}
